package com.hyny.framework.platform.biz.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;

import com.hyny.framework.platform.biz.entity.vo.DemoVO;
import com.hyny.framework.platform.system.annotation.FieldPower;
import com.hyny.framework.platform.system.annotation.Log;
import com.hyny.framework.platform.system.utils.bean.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "demo")
@RestController
@ApiSupport(order = 3)
@RequestMapping("/demo")
@Slf4j
@FieldPower(value = "演示请求", returnType = DemoVO.class)
public class DemoController {

    @Log(value = "demo")
    @ApiOperation(value = "DEMO")
    @GetMapping("/lsit")
    @ApiOperationSupport(order = 1)
    @FieldPower(value = "演示集合", returnType = DemoVO.class)
    public Result<List<DemoVO>> demoList() {
        return null;
    }
}
